package util;

import org.springframework.context.ConfigurableApplicationContext;

/**
 * Spring 工具类
 *
 * @date 2022/3/7
 * */
public class SpringUtil {

    public static ConfigurableApplicationContext applicationContext;

    public static <T> T getBean(Class<T> c) {
        return applicationContext.getBean(c);
    }
}
